package com.ebelter.ty.model.http.bean;


import com.ebelter.btcomlib.models.https.responses.BaseResponse;

import java.util.List;

public class GetAverageResponse extends BaseResponse {


    @Override
    public String toString() {
        return "GetAverageResponse{" +
                "resultCode=" + resultCode +
                ", resultMessage='" + resultMessage + '\'' +
                ", resultData=" + resultData +
                '}';
    }

    /**
     * resultData : {"count":1,"data":[{"avgWeight":67.4,"avgAR":0,"avgMQ":29.72,"days":"2018-17"}]}
     */


    private ResultDataBean resultData;

    public ResultDataBean getResultData() {
        return resultData;
    }

    public void setResultData(ResultDataBean resultData) {
        this.resultData = resultData;
    }

    public static class ResultDataBean {
        /**
         * count : 1
         * data : [{"avgWeight":67.4,"avgAR":0,"avgMQ":29.72,"days":"2018-17"}]
         */

        private int count;
        private List<DataBean> data;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        @Override
        public String toString() {
            return "ResultDataBean{" +
                    "count=" + count +
                    ", data=" + data +
                    '}';
        }

        public static class DataBean {

            /**
             * avgWeight : 67.4
             * avgAR : 0.0
             * avgMQ : 29.72
             * days : 2018-17
             */

            private float avgWeight;
            private float avgAR;
            private float avgMQ;
            private String days;

            public float getAvgWeight() {
                return avgWeight;
            }

            public void setAvgWeight(float avgWeight) {
                this.avgWeight = avgWeight;
            }

            public float getAvgAR() {
                return avgAR;
            }

            public void setAvgAR(float avgAR) {
                this.avgAR = avgAR;
            }

            public float getAvgMQ() {
                return avgMQ;
            }

            public void setAvgMQ(float avgMQ) {
                this.avgMQ = avgMQ;
            }

            public String getDays() {
                return days;
            }

            public void setDays(String days) {
                this.days = days;
            }

            @Override
            public String toString() {
                return "DataBean{" +
                        "avgWeight=" + avgWeight +
                        ", avgAR=" + avgAR +
                        ", avgMQ=" + avgMQ +
                        ", days='" + days + '\'' +
                        '}';
            }
        }
    }
}
